package com.fangque.kepp.controller;

import com.fangque.kepp.framework.result.ResultBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : liyk
 * @version 1.0
 * @date : 2019/11/5 14:38
 */
@RestController
@RequestMapping("/private")
public class PrivateTestController {

    @GetMapping("")
    public ResultBean test(){
        return ResultBean.ok("该API只能登录后访问");
    }


    @GetMapping("test")
    public ResultBean test2(){
        return ResultBean.ok("该API只能登录后访问2");
    }
}
